<template>
    <div class="container">
        <h1 @click="handleRequest">snow</h1>
    </div>
</template>
<script setup lang="ts">
// import {config1 } from '@/utils/api/index.ts'

// const handleRequest = () => {
//     debugger
//     config1({name:'123'}).then(res => {
//         console.log(res);
        
//     })
// }
// const token = useCookie("token");
// const useFetchData = await useFetch('https://md.abc.com.cn/m-staff-center/api/v1/role/pageList',{
//     method: "get",
//     headers: {
//         'Authorization' : `Bearer ${token.value}`
//     }
// })
// console.log('17useFetchData', useFetchData.data._rawValue)
// const useAsyncDataData = await useAsyncData('getRoleList', () => $fetch('https://md.abc.com.cn/m-staff-center/api/v1/role/pageList', {
//     method: "get",
//     headers: {
//         'Authorization' : `Bearer ${token.value}`
//     }
// }))
// console.log('24useAsyncDataData', useAsyncDataData.data._rawValue)
</script>